﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Drawing;
using Telerik.Web.UI;
using SmartLib;

public partial class thunghiem : System.Web.UI.Page
{
    String iddn="";
    protected void Page_Load(object sender, EventArgs e)
    {
        iddn = Request.QueryString["_iddn"];
        Session["iddn"] = iddn;
     //  title.InnerText = getInfo();
        title.InnerText = getInfo();
        
       
    }

    public string getInfo()
    {
        if (iddn != null)
            if (iddn != string.Empty)
            {
                DataTable myData = Helper.GetDataTable("Select TenDN from Doanhnghiep WHERE Madnghiep = " + iddn);
                if (myData.Rows.Count > 0)
                    return myData.Rows[0][0].ToString();
                else
                    return "THÔNG TIN";
            }
        return "THÔNG TIN";
    }

 
}
